package com.jy.adscm.wechat.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-10-09
 */
public class WechatMaterialUninstall implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 关联的id
     */
    private Long pid;
    /**
     * 部件id
     */
    private Integer parts;
    @TableField(exist = false)
    private JqbzSettings jqbzSettings;
    /**
     * 批号
     */
    private String batch;
    /**
     * 编号
     */
    private String code;
    /**
     * 创建人
     */
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 1是自修2是派修3是保养
     */
    private Integer type;

    public JqbzSettings getJqbzSettings() {
        return jqbzSettings;
    }

    public void setJqbzSettings(JqbzSettings jqbzSettings) {
        this.jqbzSettings = jqbzSettings;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Integer getParts() {
        return parts;
    }

    public void setParts(Integer parts) {
        this.parts = parts;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "WechatMaterialUninstall{" +
        "id=" + id +
        ", pid=" + pid +
        ", parts=" + parts +
        ", batch=" + batch +
        ", code=" + code +
        ", creator=" + creator +
        ", createTime=" + createTime +
        ", type=" + type +
        "}";
    }
}
